<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let jack = { name: "jack" };
        let mark = { name: "mark" };
        let map=new Map();
        map.set(jack,jack.name);  //向字典中添加key为jack对象，值为jack.name的字符串
        map.set(mark,mark.name);
        console.log(map.get(jack),map.get(mark));
        
    </script>
</body>

</html>